package com.mall.product.service;

import com.mall.common.service.CrudService;
import com.mall.product.dto.BrandDTO;
import com.mall.product.dto.CategoryBrandRelationDTO;
import com.mall.product.entity.CategoryBrandRelationEntity;

import java.util.List;

/**
 * 品牌分类关联
 *
 * @author xjc xjc@163.com
 * @since 1.0.0 2022-07-17
 */
public interface CategoryBrandRelationService extends CrudService<CategoryBrandRelationEntity, CategoryBrandRelationDTO> {

    void saveRelation(CategoryBrandRelationDTO dto);

    List<CategoryBrandRelationDTO> getListByBrandId(Long brandId);

    void updateBrandName(Long brandId, String name);

    void updateCategory(Long catId, String categoryName);

    List<BrandDTO> getListByCatId(Long catId);
}